<?php /* Smarty version 2.6.20, created on 2017-07-30 14:32:50
         compiled from shop_reserve.htm */ ?>
﻿<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/css/booking.css" rel="stylesheet" media="screen" type="text/css" />
<script src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/js/layer/layer.min.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/js/jquery.validate.js"></script>
        <div class="width_1210">
            <div class="top_first"> </div>
            <!--订单页面-->
            <div class="order_con" >
                <form id="order_form" action="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_reserve" method="post" onsubmit=" return check_data();">
                    <input type="hidden" name="act" value="reserve"/>
                    <input type="hidden" name="product_name" value="<?php echo $this->_tpl_vars['product_info']['pname']; ?>
" />
                    <input type="hidden" name="product_id" value="<?php echo $this->_tpl_vars['product_info']['id']; ?>
"/>
                    <div class="order_left">
                        <div class="order_data_con">
                            <div class="yd_msg">
                                <h3>待定信息<span></span></h3>
                                <div class="msg_con">
                                    <dl>
                                        <dt>票品：</dt>
                                        <dd style="line-height: 30px;"><?php echo $this->_tpl_vars['product_info']['pname']; ?>
</dd>
                                    </dl>
                                    <dl>
                                        <dt>联系人：</dt>
                                        <dd><input type="text" name="user_name" id="user_name" class="msg_text" value="" /></dd>
                                    </dl>
                                    <dl>
                                        <dt>联系手机：</dt>
                                        <dd><input type="text" class="msg_text" name="user_mobile" id="user_mobile" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>数量：</dt>
                                        <dd><input type="text" class="msg_text" name="num" id="num" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>心理价位：</dt>
                                        <dd><input type="text" class="msg_text" name="price" id="price" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>备注：</dt>
                                        <dd><textarea class="msg_area" name="mark" id="mark" cols="" rows=""></textarea></dd>
                                    </dl>
                                </div>
                            </div>


                            <!--预定按钮-->
                            <div class="tj_btn_order">
                                <a href="javascript:;" class="btnsaveorder">提交订单</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script type="text/javascript">

            $(".btnsaveorder").on("click",function(){
                $("#order_form").submit();
            });

            function check_data(){
                var user_name = $("#user_name").val();
                var user_mobile = $("#user_mobile").val();
                var num = $("#num").val();
                var price = $("#price").val();
                var mark = $("#mark").val();

                if(user_name == ''){
                    alert("请填写联系人");
                    return false;
                } else if(user_mobile == '') {
                    alert("请填写联系手机");
                    return false;
                } else if(num == '') {
                    alert("请填写数量");
                    return false;
                } else if(price == '') {
                    alert("请填写价格");
                    return false;
                } else if(mark == '') {
                    alert("请填写备注");
                    return false;
                } else {
                    return true;
                }

            }
        </script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
